From: Björn Daase Date: Sat, 23 May 2020 20:48:47 +0000 (+0200) Subject: panel: fix size of battery percentage label X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~357 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8c909e37e9b59e4e79aaf3581f297d606cecad6c;p=gnome-shell.git panel: fix size of battery percentage label Adjust the label of the (optional) battery percentage in the top bar to have the same size as all other text in the top bar. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2652 --- diff --git a/js/ui/status/power.js b/js/ui/status/power.js index 624228c39..d8b7da9c7 100644 --- a/js/ui/status/power.js +++ b/js/ui/status/power.js @@ -139,7 +139,7 @@ class Indicator extends PanelMenu.SystemIndicator { label = _("%d\u2009%%").format(100); else label = _("%d\u2009%%").format(this._proxy.Percentage); - this._percentageLabel.clutter_text.set_markup('' + label + ''); + this._percentageLabel.text = label; // The status label this._item.label.text = this._getStatus();